/*
 * @Description: 没有数据   NoDataWidget
 * @version: 
 * @Company: 
 * @Author: ZhengZhuang
 * @Date: 2019-11-06 14:09:39
 * @LastAuthor   : zhengzhuang
 * @lastTime     : 2020-01-09 13:27:35
 */
import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:flutter_screenutil/flutter_screenutil.dart';

class NoDataWidget extends StatelessWidget {
  @override
  Widget build(BuildContext context) {
    return ListView(
      children: <Widget>[
        Container(
          width: double.infinity,
          margin: EdgeInsets.only(
            top: ScreenUtil().setWidth(100.0)
          ),
          child: Center(
            child: Column(
              mainAxisAlignment: MainAxisAlignment.center,
              crossAxisAlignment: CrossAxisAlignment.center,
              children: <Widget>[
                Image.asset(
                  'assets/icon/noDataIcon.png',
                  width: ScreenUtil().setSp(272.0),
                  height: ScreenUtil().setSp(280.0),
                ),
                Text(
                  '暂无数据',
                  style: TextStyle(
                    fontSize: ScreenUtil().setSp(30.0),
                    color: Colors.black26,
                  ),
                ),
              ],
            ),
          ),
        ),
      ],
    );
  }
}
